package com.howtographql.hackernews.user;

/**
 * 功能说明：
 *
 * @author xiaoyu
 * @date 2019/2/21
 */

import lombok.Data;

/**
 *
 * @description
 * @version 1.0
 * @author Administrator
 * @date 2019/2/21 14:28
 *
 */
@Data
public class User {

    private final String id;
    private final String name;
    private final String email;
    private final String password;

    public User(String name, String email, String password) {
        this(null, name, email, password);
    }

    public User(String id, String name, String email, String password) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.password = password;
    }

}
